package cn.bbstone.pisces2.server;

import cn.bbstone.pisces2.server.base.DefaultListenerRegister;

public class ServerStarter {
    public static void main(String[] args) {
        long maxMem = Runtime.getRuntime().maxMemory()/(1024*1024);
        if (maxMem < 32) {// 32MB
            throw new RuntimeException("memory minimal 32 MB.");
        }
        FileServer server = new FileServer();
        server.startup(new DefaultListenerRegister());
    }
}
